import java.util.LinkedList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 17655
 * Date: 2025-09-16
 * Time: 16:04
 */
public class test6 {
    public static void main(String[] args) {
//        LinkedList<Cat> cats = new LinkedList<>();
//        LinkedList list=  cats;
//        list.add(new Dog());
//        System.out.println(list.get(0));

        LinkedList cats = new LinkedList();
        LinkedList list = cats;
        list.add(new Dog());
        System.out.println(list.get(0));
    }
}


class Cat{

}

class Dog{

}
